package org.example.service.impl;

import org.example.domain.CarDictData;
import org.example.mapper.CarDictDataMapper;
import org.example.service.CarDictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarDictDataServiceImpl implements CarDictDataService {

    @Autowired
    private CarDictDataMapper carDictDataMapper;

    @Override
    public List<CarDictData> list(CarDictData carDictData) {
        return carDictDataMapper.list(carDictData);
    }

    @Override
    public boolean add(CarDictData carDictData) {
        return carDictDataMapper.add(carDictData);
    }

    @Override
    public boolean delete(CarDictData carDictData) {
        return carDictDataMapper.delete(carDictData);
    }

    @Override
    public boolean update(CarDictData carDictData) {
        return carDictDataMapper.update(carDictData);
    }

    @Override
    public List<CarDictData> listAll() {
        return carDictDataMapper.listAll();
    }

    @Override
    public void insertBath(List<CarDictData> cacheList) {
        carDictDataMapper.insertBath(cacheList);
    }
}
